import { globalStore } from '@/store'

const store = globalStore()
const { name, gender, orgName, phone, positionName } = store.userInfo

const userTemplateData = {
	key: 'providerUserModule',
	options: {
		groupName: '',
		printElements: [
			{
				id: 1,
				tid: 'providerModule.text',
				title: '姓名',
				type: 'text',
				options: {
					testData: '姓名',
					field: 'name',
					height: 25.5,
					width: 177,
					fontWeight: '400',
					textAlign: 'center',
					textContentVerticalAlign: 'middle',
					hideTitle: true
				}
			},
			{
				id: 2,
				tid: 'providerModule.text',
				title: '性别',
				type: 'text',
				options: {
					testData: '性别',
					field: 'gender',
					height: 25.5,
					width: 177,
					fontWeight: '400',
					textAlign: 'center',
					textContentVerticalAlign: 'middle',
					hideTitle: true
				}
			},
			{
				id: 3,
				tid: 'providerModule.text',
				title: '手机号',
				type: 'text',
				options: {
					testData: '手机号',
					field: 'phone',
					height: 25.5,
					width: 177,
					fontWeight: '400',
					textAlign: 'center',
					textContentVerticalAlign: 'middle',
					hideTitle: true
				}
			},
			{
				id: 4,
				tid: 'providerModule.text',
				title: '所属机构',
				type: 'text',
				options: {
					testData: '所属机构',
					field: 'orgName',
					height: 25.5,
					width: 177,
					fontWeight: '400',
					textAlign: 'center',
					textContentVerticalAlign: 'middle',
					hideTitle: true
				}
			},
			{
				id: 5,
				tid: 'providerModule.text',
				title: '职位',
				type: 'text',
				options: {
					testData: '职位',
					field: 'positionName',
					height: 25.5,
					width: 177,
					fontWeight: '400',
					textAlign: 'center',
					textContentVerticalAlign: 'middle',
					hideTitle: true
				}
			}
		]
	}
}

const userPrintData = {
	name,
	gender,
	orgName,
	phone,
	positionName
}

export { userTemplateData, userPrintData }
